package calculator;

import java.util.Scanner;

public class Test {
//4444
//1111
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入数字A");
        double numberA = Double.parseDouble(sc.nextLine());
        System.out.println("请输入运算符");
        String strOperate = sc.nextLine();
        System.out.println("请输入数字B");
        double numberB = Double.parseDouble(sc.nextLine());
        Operation operation = OperationFactory.getOperationFactory(strOperate);
        System.out.println(operation.executor(numberA, numberB));
    }
}
